文件比较
修改方法参见表后的文字说明
左侧为 HDWiki(For Discuz!)V1.50 的文件,右侧为discuz6.1原来文件。
44 showheader('user', 'members'); = 44 showheader('user', 'members');
45 showheader('topic', 'moderate&operation=threads');   45 showheader('topic', 'moderate&operation=threads');
46 showheader('extended', 'plugins');   46 showheader('extended', 'plugins');
47 showheader('misc', 'announcements');   47 showheader('misc', 'announcements');
48 showheader('adv', 'advertisements');   48 showheader('adv', 'advertisements');
49 showheader('tools', $isfounder && checkpermission('dbimport', 0) ? 'database&operation=export' : 'counter');   49 showheader('tools', $isfounder && checkpermission('dbimport', 0) ? 'database&operation=export' : 'counter');
50 showheader('hdwiki', 'hdwiki'); +-    
51 if($isfounder) { = 50 if($isfounder) {
52         echo '<li><em><a href="#" class="diffcolor" onclick="window.open(\''.UC_API.'\')">'.$lang['header_uc'].'</a></em></li>';   51         echo '<li><em><a href="#" class="diffcolor" onclick="window.open(\''.UC_API.'\')">'.$lang['header_uc'].'</a></em></li>';
53 }   52 }
54     53  
55 echo <<<EOT   54 echo <<<EOT
56     55  
 
95         </div> = 94         </div>
96         <div class="cmain" id="cmain"></div>   95         <div class="cmain" id="cmain"></div>
97         <div class="cfixbd"></div>   96         <div class="cfixbd"></div>
98 </div>   97 </div>
99     98  
100 <script type="text/JavaScript">   99 <script type="text/JavaScript">
101         var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv','hdwiki'); <> 100         var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv');
102         function toggleMenu(key, url) { = 101         function toggleMenu(key, url) {
103                 if(key == 'index' && url == 'home') {   102                 if(key == 'index' && url == 'home') {
104                         parent.location.href = 'admincp.php?frames=yes';   103                         parent.location.href = 'admincp.php?frames=yes';
105                         return false;   104                         return false;
106                 }   105                 }
107                 for(var k in headers) {   106                 for(var k in headers) {

(约在49行) showheader('tools', $isfounder && checkpermission('dbimport', 0) ? 'database&operation=export' : 'counter');
(下面加入)showheader('hdwiki', 'hdwiki');

(约将100行)var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv');
(修改为) var headers = new Array('index', 'global', 'forum', 'user', 'topic', 'extended', 'misc', 'tools', 'adv','hdwiki');